<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>librf: resumef::counted_ptr&lt; T &gt; 模板结构体 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">librf
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>resumef</b></li><li class="navelem"><a class="el" href="structresumef_1_1counted__ptr.html">counted_ptr</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="structresumef_1_1counted__ptr-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">resumef::counted_ptr&lt; T &gt; 模板结构体 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>专用与state的智能计数指针，通过管理state内嵌的引用计数来管理state的生存期。  
 <a href="structresumef_1_1counted__ptr.html#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad3969379af7311183c1c11d13f6da9f3"><td class="memItemLeft" align="right" valign="top"><a id="ad3969379af7311183c1c11d13f6da9f3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#ad3969379af7311183c1c11d13f6da9f3">counted_ptr</a> () noexcept=default</td></tr>
<tr class="memdesc:ad3969379af7311183c1c11d13f6da9f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个无内容的计数指针。 <br /></td></tr>
<tr class="separator:ad3969379af7311183c1c11d13f6da9f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad466495cf5a6056e326a923558676ccd"><td class="memItemLeft" align="right" valign="top"><a id="ad466495cf5a6056e326a923558676ccd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#ad466495cf5a6056e326a923558676ccd">counted_ptr</a> (const <a class="el" href="structresumef_1_1counted__ptr.html">counted_ptr</a> &amp;cp)</td></tr>
<tr class="memdesc:ad466495cf5a6056e326a923558676ccd"><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝构造函数。 <br /></td></tr>
<tr class="separator:ad466495cf5a6056e326a923558676ccd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab752ffdd40c7ab1be06e7662488d8e24"><td class="memItemLeft" align="right" valign="top"><a id="ab752ffdd40c7ab1be06e7662488d8e24"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#ab752ffdd40c7ab1be06e7662488d8e24">counted_ptr</a> (T *p)</td></tr>
<tr class="memdesc:ab752ffdd40c7ab1be06e7662488d8e24"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过裸指针构造一个计数指针。 <br /></td></tr>
<tr class="separator:ab752ffdd40c7ab1be06e7662488d8e24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b6f5332dd4754c22970f7e5406c6233"><td class="memItemLeft" align="right" valign="top"><a id="a8b6f5332dd4754c22970f7e5406c6233"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#a8b6f5332dd4754c22970f7e5406c6233">counted_ptr</a> (<a class="el" href="structresumef_1_1counted__ptr.html">counted_ptr</a> &amp;&amp;cp) noexcept</td></tr>
<tr class="memdesc:a8b6f5332dd4754c22970f7e5406c6233"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动构造函数。 <br /></td></tr>
<tr class="separator:a8b6f5332dd4754c22970f7e5406c6233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a5bff0a86d41b1ab50f817be770573a"><td class="memItemLeft" align="right" valign="top"><a id="a8a5bff0a86d41b1ab50f817be770573a"></a>
<a class="el" href="structresumef_1_1counted__ptr.html">counted_ptr</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#a8a5bff0a86d41b1ab50f817be770573a">operator=</a> (const <a class="el" href="structresumef_1_1counted__ptr.html">counted_ptr</a> &amp;cp)</td></tr>
<tr class="memdesc:a8a5bff0a86d41b1ab50f817be770573a"><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝赋值函数。 <br /></td></tr>
<tr class="separator:a8a5bff0a86d41b1ab50f817be770573a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6a044ce1cdecc3a2650f16f445de2d4"><td class="memItemLeft" align="right" valign="top"><a id="af6a044ce1cdecc3a2650f16f445de2d4"></a>
<a class="el" href="structresumef_1_1counted__ptr.html">counted_ptr</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#af6a044ce1cdecc3a2650f16f445de2d4">operator=</a> (<a class="el" href="structresumef_1_1counted__ptr.html">counted_ptr</a> &amp;&amp;cp) noexcept</td></tr>
<tr class="memdesc:af6a044ce1cdecc3a2650f16f445de2d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动赋值函数。 <br /></td></tr>
<tr class="separator:af6a044ce1cdecc3a2650f16f445de2d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a825f25bf4975e015f859e8ba29bd85b6"><td class="memItemLeft" align="right" valign="top"><a id="a825f25bf4975e015f859e8ba29bd85b6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#a825f25bf4975e015f859e8ba29bd85b6">~counted_ptr</a> ()</td></tr>
<tr class="memdesc:a825f25bf4975e015f859e8ba29bd85b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构函数中自动做一个计数减一操作。计数减为0，则删除state对象。 <br /></td></tr>
<tr class="separator:a825f25bf4975e015f859e8ba29bd85b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa22f547da8b8e79b476ee83e4a790dba"><td class="memItemLeft" align="right" valign="top"><a id="aa22f547da8b8e79b476ee83e4a790dba"></a>
T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#aa22f547da8b8e79b476ee83e4a790dba">operator-&gt;</a> () const noexcept</td></tr>
<tr class="memdesc:aa22f547da8b8e79b476ee83e4a790dba"><td class="mdescLeft">&#160;</td><td class="mdescRight">重载指针操作符。 <br /></td></tr>
<tr class="separator:aa22f547da8b8e79b476ee83e4a790dba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f6757dac685431f2ae561a58c502d1f"><td class="memItemLeft" align="right" valign="top"><a id="a9f6757dac685431f2ae561a58c502d1f"></a>
T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#a9f6757dac685431f2ae561a58c502d1f">get</a> () const noexcept</td></tr>
<tr class="memdesc:a9f6757dac685431f2ae561a58c502d1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获得管理的state指针。 <br /></td></tr>
<tr class="separator:a9f6757dac685431f2ae561a58c502d1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa33f9e7d3ee850bed6dbefd40252a899"><td class="memItemLeft" align="right" valign="top"><a id="aa33f9e7d3ee850bed6dbefd40252a899"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresumef_1_1counted__ptr.html#aa33f9e7d3ee850bed6dbefd40252a899">reset</a> ()</td></tr>
<tr class="memdesc:aa33f9e7d3ee850bed6dbefd40252a899"><td class="mdescLeft">&#160;</td><td class="mdescRight">重置为空指针。 <br /></td></tr>
<tr class="separator:aa33f9e7d3ee850bed6dbefd40252a899"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
struct resumef::counted_ptr&lt; T &gt;</h3>

<p>专用与state的智能计数指针，通过管理state内嵌的引用计数来管理state的生存期。 </p>
</div><hr/>该结构体的文档由以下文件生成:<ul>
<li>librf/src/<a class="el" href="counted__ptr_8h_source.html">counted_ptr.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
